<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*"%>
<%@page import="myJDBC.lowLevel.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
<%@include file="smallJsps/styles.jsp" %>
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%@include file="smallJsps/bootstrapInclude.jsp" %>
</head>
<body>
<%@include file="smallJsps/logoutButton.jsp" %>
<%@include file="smallJsps/checkAdmin.jsp" %>
<div class="row-fluid">
		<div class="span6 offset2">
<form action="SrvlCreateListValues" name="formCrVal" method="POST">
<%
	if(request.getAttribute("attrId")!=null){
		int attrId=(Integer)request.getAttribute("attrId");
		out.print("<input type=\"hidden\" name=\"attrType\" value="+attrId+">");
	}
	else{
		out.print("<label>attribute<br><select name=\"attrType\">");				
			ArrayList<String> listWithAttributes = Attributes.returnArrayAttributes();
			for (int i = 0; i < listWithAttributes.size(); i = i + 3) {
				out.println("<option value=" + listWithAttributes.get(i)+ ">"+ listWithAttributes.get(i + 1)+"||"+
						listWithAttributes.get(i + 2)
						+ "</option>");

			}
		out.print("</select></label>");
	}
 %>
 <br>
 <label>name<br><input type="text" name="name"></label>
 <br>
 <label>values<br><textarea name="values" cols="20" rows="5"></textarea></label><br>
 <input class="btn btn-large btn-primary" type="submit" value="Create">
</form>
<form method="get" action="privateOffice"><button class="btn" type="submit">privateOffice</button></form>
</div>
</div>
</body>
</html>